package org.study;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Demo<T extends Number> extends AtomicDemo implements InterDemo<T> {

    public String name;

    private String age;

    private T fx;

    public static <T extends Demo> void attach(T t) {
        Demo demo = t;
    }

    @Override
    public void print() {
        System.out.println(fx);
    }


    interface iter1<T> {
        T iter1Show();
    }


    interface inter2<T> extends iter1<T> {
        T inter2Show();
    }

    public static class ClassDemo<T> implements inter2<T> {


        @Override
        public T iter1Show() {
            return null;
        }

        @Override
        public T inter2Show() {
            String[] back = new String[] { "inter2Show" };
            return null;
        }

    }

    public static void main(String[] args) {
       String demo = "12333";
       if (demo.charAt(0) == '1') {
           System.out.println(demo.charAt(0));
       }
    }

}
